﻿using System;
using System.Windows;
using System.Runtime.Serialization;

namespace Sonce.Database
{
    [DataContract()]
    public class Element : ITable
    {
        [DataMember()] //[DataMember(Order = 1)]
        public int ID { get; set; }             //Primary key
        public int PrototypeID { get; set; }    //ID of ElementPrototype
        public string Name { get; set; }
        public string Label { get; set; }       //R for resistor, C for capacitor
        public string Spice { get; set; }       //Spice parameters, e.g. vb=10 vc=20 ve=30 for transistor
        public Point Position { get; set; }     //Location in the editor (absolute position)
        public double Angle { get; set; }       //Angle for image
        public double Value { get; set; }       //Resistance in ohms, capacity in farads, etc.
    }
}
